Optimal. Leaf size=70 \[ \frac {(b B-3 A c) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {b}}\right )}{2 b^{5/2} \sqrt {c}}+\frac {x (b B-A c)}{2 b^2 \left (b+c x^2\right )}-\frac {A}{b^2 x} \]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {1584, 456, 453, 205} \begin {gather*} \frac {x (b B-A c)}{2 b^2 \left (b+c x^2\right )}+\frac {(b B-3 A c) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {b}}\right )}{2 b^{5/2} \sqrt {c}}-\frac {A}{b^2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 453
Rule 456
Rule 1584
Rubi steps
\begin {align*} \int \frac {x^2 \left (A+B x^2\right )}{\left (b x^2+c x^4\right )^2} \, dx &=\int \frac {A+B x^2}{x^2 \left (b+c x^2\right )^2} \, dx\\ &=\frac {(b B-A c) x}{2 b^2 \left (b+c x^2\right )}-\frac {1}{2} \int \frac {-\frac {2 A}{b}-\frac {(b B-A c) x^2}{b^2}}{x^2 \left (b+c x^2\right )} \, dx\\ &=-\frac {A}{b^2 x}+\frac {(b B-A c) x}{2 b^2 \left (b+c x^2\right )}+\frac {(b B-3 A c) \int \frac {1}{b+c x^2} \, dx}{2 b^2}\\ &=-\frac {A}{b^2 x}+\frac {(b B-A c) x}{2 b^2 \left (b+c x^2\right )}+\frac {(b B-3 A c) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {b}}\right )}{2 b^{5/2} \sqrt {c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 70, normalized size = 1.00 \begin {gather*} \frac {(b B-3 A c) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {b}}\right )}{2 b^{5/2} \sqrt {c}}+\frac {x (b B-A c)}{2 b^2 \left (b+c x^2\right )}-\frac {A}{b^2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^2 \left (A+B x^2\right )}{\left (b x^2+c x^4\right )^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 210, normalized size = 3.00 \begin {gather*} \left [-\frac {4 \, A b^{2} c - 2 \, {\left (B b^{2} c - 3 \, A b c^{2}\right )} x^{2} - {\left ({\left (B b c - 3 \, A c^{2}\right )} x^{3} + {\left (B b^{2} - 3 \, A b c\right )} x\right )} \sqrt {-b c} \log \left (\frac {c x^{2} + 2 \, \sqrt {-b c} x - b}{c x^{2} + b}\right )}{4 \, {\left (b^{3} c^{2} x^{3} + b^{4} c x\right )}}, -\frac {2 \, A b^{2} c - {\left (B b^{2} c - 3 \, A b c^{2}\right )} x^{2} - {\left ({\left (B b c - 3 \, A c^{2}\right )} x^{3} + {\left (B b^{2} - 3 \, A b c\right )} x\right )} \sqrt {b c} \arctan \left (\frac {\sqrt {b c} x}{b}\right )}{2 \, {\left (b^{3} c^{2} x^{3} + b^{4} c x\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 62, normalized size = 0.89 \begin {gather*} \frac {{\left (B b - 3 \, A c\right )} \arctan \left (\frac {c x}{\sqrt {b c}}\right )}{2 \, \sqrt {b c} b^{2}} + \frac {B b x^{2} - 3 \, A c x^{2} - 2 \, A b}{2 \, {\left (c x^{3} + b x\right )} b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 85, normalized size = 1.21 \begin {gather*} -\frac {A c x}{2 \left (c \,x^{2}+b \right ) b^{2}}-\frac {3 A c \arctan \left (\frac {c x}{\sqrt {b c}}\right )}{2 \sqrt {b c}\, b^{2}}+\frac {B x}{2 \left (c \,x^{2}+b \right ) b}+\frac {B \arctan \left (\frac {c x}{\sqrt {b c}}\right )}{2 \sqrt {b c}\, b}-\frac {A}{b^{2} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.98, size = 63, normalized size = 0.90 \begin {gather*} \frac {{\left (B b - 3 \, A c\right )} x^{2} - 2 \, A b}{2 \, {\left (b^{2} c x^{3} + b^{3} x\right )}} + \frac {{\left (B b - 3 \, A c\right )} \arctan \left (\frac {c x}{\sqrt {b c}}\right )}{2 \, \sqrt {b c} b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.13, size = 63, normalized size = 0.90 \begin {gather*} -\frac {\frac {A}{b}+\frac {x^2\,\left (3\,A\,c-B\,b\right )}{2\,b^2}}{c\,x^3+b\,x}-\frac {\mathrm {atan}\left (\frac {\sqrt {c}\,x}{\sqrt {b}}\right )\,\left (3\,A\,c-B\,b\right )}{2\,b^{5/2}\,\sqrt {c}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.51, size = 114, normalized size = 1.63 \begin {gather*} - \frac {\sqrt {- \frac {1}{b^{5} c}} \left (- 3 A c + B b\right ) \log {\left (- b^{3} \sqrt {- \frac {1}{b^{5} c}} + x \right )}}{4} + \frac {\sqrt {- \frac {1}{b^{5} c}} \left (- 3 A c + B b\right ) \log {\left (b^{3} \sqrt {- \frac {1}{b^{5} c}} + x \right )}}{4} + \frac {- 2 A b + x^{2} \left (- 3 A c + B b\right )}{2 b^{3} x + 2 b^{2} c x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________